package com.spx.kernel.rap;

import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.rwt.SessionSingletonBase;

import com.spx.kernel.StatusSessionHolder;

public class RAPStatusSessionHolder implements StatusSessionHolder
{

	public RAPStatusSessionHolder()
	{
		
	}

	@Override
	public IStatusLineManager getStatusLine()
	{
		return RAPStatusSessionHolderEndPoint.getInstance().getStatusLine();
	}

	@Override
	public void setStatusLine(IStatusLineManager statusLine)
	{
		RAPStatusSessionHolderEndPoint.getInstance().setStatusLine(statusLine);
	}

}

class RAPStatusSessionHolderEndPoint extends SessionSingletonBase implements StatusSessionHolder {

	IStatusLineManager lineManager;
	
	
	@Override
	public IStatusLineManager getStatusLine()
	{
		
		return lineManager;
	}

	@Override
	public void setStatusLine(IStatusLineManager statusLine)
	{
		lineManager=statusLine;
	}
	
	
	
	public static RAPStatusSessionHolderEndPoint getInstance()
	{
		return (RAPStatusSessionHolderEndPoint) getInstance(RAPStatusSessionHolderEndPoint.class);
	}
	
	
	
	
}

